package com.hnx.admin.aurora.controller;

import com.hnx.admin.aurora.domain.param.query.JobLogQuery;
import com.hnx.admin.aurora.service.SysJobLogService;
import com.hnx.admin.aurora.web.json.ResultJson;
import lombok.RequiredArgsConstructor;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/*
创建人： 倔强的头发
创建时间：2025/7/5
功能描述:

*/
@RestController
@RequestMapping("/monitor/job")
@RequiredArgsConstructor
public class SysJobLogController {
    private final SysJobLogService jobService;
    /**
     * 查询定时任务列表
     */
    @PreAuthorize("@auth.hasPermi('monitor:job:list')")
    @GetMapping("/list")
    public ResultJson list(JobLogQuery sysJob)
    {
       return jobService.selectJobList(sysJob);
    }
}
